package com.book.book.dao;

import com.book.book.domain.CommunicateDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 图书交流表
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
@Mapper
public interface CommunicateDao {

	CommunicateDO get(Integer id);

	List<CommunicateDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(CommunicateDO communicate);

	int update(CommunicateDO communicate);

	int remove(Integer id);

	int batchRemove(Integer[] ids);

    List<CommunicateDO> getcommunicate( Integer bookid);

	List<CommunicateDO> listWithName(Map<String, Object> map);
}
